package domain;

/**
 * this class stands for 
 * a registered user
 * @author wangkaidi
 *
 */
public class User 
{
	private String username;
	private String password;
	private String alias;
	
	public User()
	{
		
	}
	
	public User(String username,String password)
	{
		this.username=username;
		this.password=password;
		alias=username;
	}
	
	public void setUsername(String username)
	{
		this.username=username;
	}
	
	public String getUsername()
	{
		return username;
	}
	
	public void setPassword(String password)
	{
		this.password=password;
	}
	
	public String getPassword()
	{
		return password;
	}
	
	public void setAlias(String alias)
	{
		this.alias=alias;
	}
	
	public String getAlias()
	{
		return alias;
	}
	
	public String toString()
	{
		StringBuffer sb=new StringBuffer();
		sb.append("username: "+username);
		sb.append("\n");
		sb.append("password: "+password);
		sb.append("\n");
		sb.append("alias: "+alias);
		sb.append("\n");
		return sb.toString();
	}
}
